//
//  HQHotMoreDetailCell.m
//  MobileiOS
//
//  Created by 郝庆松 on 2018/7/28.
//  Copyright © 2018年 PCITC. All rights reserved.
//

#import "HQHotMoreDetailCell.h"

@implementation HQHotMoreDetailCell

/**
 生成Cell
 
 @param tableView 列表
 @return ***
 */
+(instancetype)cellWithTableView:(UITableView*)tableView{
    static NSString *CellIdentifer = @"HQHotMoreDetailCell";
    HQHotMoreDetailCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifer];
    if(!cell){
        [tableView registerNib:[UINib nibWithNibName:CellIdentifer bundle:nil] forCellReuseIdentifier:CellIdentifer];
        cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifer];
    }
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}

-(void)setDataInfo:(HQStyleObject *)dataInfo{
    _dataInfo = dataInfo;    
    _itemName.text = _dataInfo.zujianName;
    _itemNum.text = [NSString stringWithFormat:@"%@ %@",_dataInfo.zujianVaule,_dataInfo.unit];
}

@end
